home *** CD-ROM | disk | FTP | other *** search
/ The X-Philes (2nd Revision) / The X-Philes Number 1 (1995).iso / xphiles / hp48hor2 / grobbug.doc < prev    next >
Text File  |  1995-03-31  |  1KB  |  46 lines

  1. (Comp.sys.hp48) 
  2. Item: 380 by jmorriso@ee.ubc.ca 
  3. Author: [John Paul Morrison] 
  4.   Subj: Dangerous Bug! 
  5.   Date: Sat Dec 14 1991 
  6.  
  7. I came accros this bug, quite unexpectedly. 
  8.  
  9. This is on on HP48SX version E roms. 
  10. I have not tested any other roms. 
  11. I can rule out my own machine's corrupt memory as a possible 
  12. cause, since I can repeat the bug in a freshly memory cleared 
  13. machine. 
  14.  
  15. If you enter this on the command line: 
  16.  
  17. GROB m n (hit enter) 
  18.  
  19. normally, it will create a GROB m x n which is blank. 
  20. if the dimensions are too big, you should get an insufficient memory error. 
  21.  
  22. if m is any number and n is a number >= 2^20 - 10, watch out! 
  23. you will get a memory clear, and you will recover very little if any  
  24. of your original memory. 
  25.  
  26. notice that if you interchange m and n, and enter GROB n m it will not crash, 
  27. but you'll get an out of memory error. 
  28.  
  29. example: 
  30. GROB 1 1048576 (enter) 
  31. boom!!! 
  32.  
  33. The bug can also be demonstrated by entering this: 
  34. "GROB 1 1048576" OBJ\->  
  35.  
  36. in general: "GROB m n" OBJ\-> will cause a crash too, where m, n are the same 
  37. as before. 
  38.  
  39. I'm fairly certain this has not been documented before. It is probable that 
  40. this bug exists on all ROMS but I'm guessing. 
  41.  
  42. Solution: don't do it. It was bad luck that led me to discover this, and I 
  43. doubt if it will normally be encountered. 
  44.  
  45. John Paul Morrison 
  46.